﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Frame.Lib.Core.Cache;
using Frame.Lib.Utilities;

namespace Frame.Web.Admin.Tools
{
    public partial class CacheManage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnUpdateCache_Click(object sender, EventArgs e)
        {
            CacheManager.Instance.Update();
            JSUtil.Alert("已更新");
        }

        protected void btnGetCache_Click(object sender, EventArgs e)
        {
            string xml = CacheManager.Instance.GetCacheXml();
            Response.ContentType = "application/xml";
            Response.Write(xml);
            Response.End();
        }
    }
}